package composite.view;


import log.Log;

public interface View {
    void onDraw();

    default void drawSpan(int indent) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < indent; i++) {
            builder.append("  | ");
        }
        Log.printIndent(builder.toString(), Log.black, getBgColor(builder.toString()));
    }

    String getColor();

    String getBgColor(String buider);
}
